package com.koron.standard.bean.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author jzp
 * @since 2021/7/13 10:28
 */
@Data
public class BaseBean {

    @TableId(type= IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    @TableField(fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @TableField(fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @TableField(fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill= FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
